package com.pactera.chatRoom.service;

import com.pactera.chatRoom.dao.MessageDao;
import com.pactera.chatRoom.entity.ChatMsg;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MessageServcie {

    @Resource
    MessageDao messageDao;

    public int saveMsg(ChatMsg msg) {

        int num = messageDao.save(msg);

        return num;
    }
}
